package com.wy2.springcloud.sample.baseuser.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HomeController {
	
	private static Logger logger=LoggerFactory.getLogger(HomeController.class);
	
	@Value("${server.port}")
	private String port;

	@GetMapping("/")
	public String index() {
		logger.info("访问了接口");
		return "success:"+port;
	}
}
